<?php
    $foo = 5;
    $bar = $foo;
    for($i = 0; $i < 5; $i++) {
        echo "The value of foo is: $foo, and the value of bar is: $bar<BR>";
        $foo++;
        $bar--;
    }
?>

<?php
    echo "\n";
    $foo = 5;
    $bar =& $foo;
    for($i = 0; $i < 5; $i++) {
        echo "The value of foo is: $foo, and the value of bar is: $bar<BR>";
        $foo++;
        $bar--;
    }
?>
